package com.lch.webdemo.enums;

/**
 *
 * 数据源类型
 *
 * @author liuchenhui
 * @date 2018/10/19
 * @since
 */
public enum DataSourceEnum {

    /**
     * 主数据源
     */
    MASTER(0,"master"),

    /**
     * 从数据源
     */
    SLAVE(1,"slave");

    private int type;

    private String value;

    public String getValue() {
        return value;
    }


    DataSourceEnum(int type, String value) {
        this.type = type;
        this.value = value;
    }

    public int getType() {
        return type;
    }

}
